package com.xiaoke.mapper;

import com.xiaoke.entity.Collect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CollectMapper {
    int deleteByPrimaryKey(String id);

    int insert(Collect record);

    int insertSelective(Collect record);

    Collect selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Collect record);

    int updateByPrimaryKey(Collect record);

    Collect findByUserAndGoods(@Param("userId") String userId,@Param("goodsId") String goodsId);

    List<Map<String,Object>> findByUser(String userId);
}